package ch01.team;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by zc on 2016/1/18.
 */
public class TeamsUtility {

    private Map<String, Team> teamMap;

    public TeamsUtility() {
        this.teamMap = new HashMap<>();
    }

    public Team getTeam(String name) {
        return teamMap.get(name);
    }

    public List<Team> getTeamList(){
        List<Team> list = new ArrayList<>();
        for(String key: teamMap.keySet()){
            list.add(teamMap.get(key));
        }
        return list;
    }

    public void makeTeams(){
        List<Team> teamList = new ArrayList<>();


    }


    public Map<String, Team> getTeamMap() {
        return teamMap;
    }

    public void setTeamMap(Map<String, Team> teamMap) {
        this.teamMap = teamMap;
    }
}
